<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
  </head>
  <body>
    <!-- 获取URL -->
    <script>
      //获取页面的路径
      var way = location.href
      console.log(way)
    </script>
  </body>
</html>
